import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const abc: AppRouteModule = {
  path: '/abc',
  name: 'Abc',
  component: LAYOUT,
  redirect: '/abc/index',
  meta: {
    orderNo: 30,
    icon: 'ion:document',
    title: t('routes.abc.union.index'),
  },
  children: [
    {
      path: 'index',
      name: 'AbcList',
      component: () => import('/@/views/abc/index.vue'),
      meta: {
        title: t('routes.abc.union.list'),
        ignoreKeepAlive: false,
      },
    },
    {
      path: 'detail',
      name: 'AbcDetail',
      component: () => import('/@/views/abc/detail.vue'),
      meta: {
        title: t('routes.abc.union.detail'),
        ignoreKeepAlive: true,
        hideMenu: true,
      },
    },
  ],
};

export default abc;
